/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: patricio caceres
 * License Type: Evaluation
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_cursoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression cu_id_curso;
	public final StringExpression cu_nombre;
	
	public Tan_cursoDetachedCriteria() {
		super(orm.Tan_curso.class, orm.Tan_cursoCriteria.class);
		cu_id_curso = new IntegerExpression("cu_id_curso", this.getDetachedCriteria());
		cu_nombre = new StringExpression("cu_nombre", this.getDetachedCriteria());
	}
	
	public Tan_cursoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tan_cursoCriteria.class);
		cu_id_curso = new IntegerExpression("cu_id_curso", this.getDetachedCriteria());
		cu_nombre = new StringExpression("cu_nombre", this.getDetachedCriteria());
	}
	
	public Tan_alumnoDetachedCriteria createTan_alumnoCriteria() {
		return new Tan_alumnoDetachedCriteria(createCriteria("ORM_Tan_alumno"));
	}
	
	public Tan_subsectorDetachedCriteria createTan_subsectorCriteria() {
		return new Tan_subsectorDetachedCriteria(createCriteria("ORM_Tan_subsector"));
	}
	
	public Tan_curso uniqueTan_curso(PersistentSession session) {
		return (Tan_curso) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tan_curso[] listTan_curso(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tan_curso[]) list.toArray(new Tan_curso[list.size()]);
	}
}

